package com.tsystems.tuni.sportplanet.dao;

import java.util.List;

/**
 * GenericDAO for common operations among all DAO's.
 * 
 * @author Yuriy Eremin
 * 
 * @param <T>
 */
public interface GenericDAO<T> {

	public void save(T entity);

	public void merge(T entity);

	public void delete(T entity);

	/*
	 * public List<T> findMany(Query query);
	 * 
	 * public T findOne(Query query);
	 */

	public List<T> getAll(Class<T> clazz);

	@SuppressWarnings("rawtypes")
	public T findById(Class clazz, Integer id);

}